import httpRequest from '@/utils/httpRequest'
import constant from './constant'
// 险种规则定义菜单列表
export function rulesList(data) {
  return httpRequest({
    url: constant.DR + '/rule/ruleRiskMenu/list',
    method: 'post',
    data: data
  })
}
// 险种规则定义菜单新增/修改
export function menuInfoSave(data) {
  return httpRequest({
    url: constant.DR + '/rule/ruleRiskMenu/menuInfoSave',
    method: 'post',
    data: data
  })
}
// 险种规则定义菜单删除
export function menudelete(data) {
  return httpRequest({
    url: constant.DR + '/rule/ruleRiskMenu/delete',
    method: 'post',
    data: data
  })
}
// 险种规则定义菜单类型列表
export function listMenuType(data) {
  return httpRequest({
    url: constant.DR + '/rule/ruleRiskMenu/listMenuType',
    method: 'post',
    data: data
  })
}
// 义菜单类型编辑查询接口
export function ruleRiskMenu(data) {
  return httpRequest({
    url: constant.DR + '/rule/ruleRiskMenu/edit',
    method: 'post',
    data: data
  })
}
// -险种规则定义菜单类型新增/编辑保存接口
export function menuTypeSave(data) {
  return httpRequest({
    url: constant.DR + '/rule/ruleRiskMenu/menuTypeSave',
    method: 'post',
    data: data
  })
}
// -险种规则定义规则组查询接口
export function getGroupList(data) {
  return httpRequest({
    url: constant.DR + '/rule/groupInfo/getGroupList',
    method: 'post',
    data: data
  })
}
// -菜单类型删除接口
export function menuTypeDelete(data) {
  return httpRequest({
    url: constant.DR + '/rule/ruleRiskMenu/menuTypeDelete',
    method: 'post',
    data: data
  })
}
